{% extends 'book_outlet/base.html' %}

{% block title %}
  All Books
{% endblock %}

{% block content %}
  <ul>
    {% for book in books %}
      <a href="{{ book.get_absolute_url }}">
        <li>{{ book.title }} (Rating: {{ book.rating }})</li>
      </a>
    {% endfor %}
  </ul>

  <hr>

  <p>Total Number Of Books: {{ total_number_of_books }}</p>
  <p>Average Rating: {{ avarege_rating.rating__avg }}</p>
{%  endblock %}